<div class="container">
	<div class="span-17 main-content">

		<h2>Tutoriali</h2>
	
		<% @tutorial_categories.each do |category| %>
		  	<h3> <%= category.name %> </h3>
		  
		  	<table class="tutorials">  
			    <% i=0; category.tutorials.order('id').each do |tutorial| %>
			      <tr > 
			      	<td class="tutorial narrow georgia"><%= i += 1 %></td>
			      	<td class="tutorial"> <%= link_to tutorial.name, frontend_tutorial_path(tutorial.slug)%> </td> 
			      </tr>
			    <% end %>
		    </table>
		<% end %>

	</div>

	<%= render 'shared/sidebar' %>
</div>
